package com.mi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mi.system.entity.Menu;
import com.mi.system.vo.MenuVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Menu mapper
 *
 * @author jin_huaquan
 * @version 1.0
 * @date 2021/11/1 13:48
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * list all menu
     *
     * @return menu list
     */
    List<MenuVO> selectAll();

    /**
     * list role menus
     *
     * @return role menus
     */
    List<MenuVO> selectByRoleIdIn(@Param("roleIds") List<Long> roleIds);
}
